import { axios } from '@/utils/request'

export function getSysEnterpriseServiceFeeList(params) {
  return axios({
    url: '/sys/fee/pageQueryEnterpriseSetup',
    method: 'get',
    params
  })
}
export function sysEnterpriseFeeConfigAdd(parameter) {
  return axios({
    url: '/sys/fee/setupEnterpriseFee',
    method: 'post',
    data:parameter
  })
}
export function sysEnterpriseFeeConfigEdit(parameter) {
  return axios({
    url: '/sys/fee/updateEnterpriseFee',
    method: 'post',
    data:parameter
  })
}
export function getSysEnterpriseParkServiceFeeList(params) {
  return axios({
    url: '/sys/fee/pageQueryParkEnterpriseFee',
    method: 'get',
    params
  })
}
export function sysEnterpriseParkFeeConfigAdd(parameter) {
  return axios({
    url: '/sys/fee/add',
    method: 'post',
    data:parameter
  })
}
export function sysEnterpriseParkFeeConfigEdit(parameter) {
  return axios({
    url: '/sys/fee/update',
    method: 'post',
    data:parameter
  })
}
export function getSysEnterpriseParkFeeDel(parameter) {
  return axios({
    url: '/sys/fee/delete',
    method: 'post',
    data:parameter
  })
}
export function querySysEnterpriseIdOfParkId(parkId,enterpriseId) {
    parkId = parkId !== undefined ? parkId : '';
    enterpriseId = enterpriseId !== undefined ? enterpriseId : '';
  return axios({
    url: `/sys/fee/queryParkEnterpriseFee?parkId=${parkId}&enterpriseId=${enterpriseId}`,
    method: 'get'
  })
}
export function allEnterpriseIdQueryEnterpriseSet(enterpriseId) {
  return axios({
    url: `/sys/fee/queryEnterpriseSetup?enterpriseId=${enterpriseId}`,
    method: 'get'
  })
}